package com.lovo.ssc.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author lovo
 * @since 2022-07-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_order")
public class Order extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号,主键
     */
    @TableId(value = "orderId", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单号
     */
    @TableField("orderCode")
    private String orderCode;

    /**
     * 下单时间
     */
    @TableField("plaOrderTime")
    private String plaOrderTime;

    /**
     * 订单状态,0-未付款、1-已付款、2-已完成、3-正在退货
     */
    @TableField("orderStatus")
    private Integer orderStatus;

    /**
     * 收货地址
     */
    @TableField("shippingAddress")
    private String shippingAddress;

    /**
     * 支付方式，0-余额支付 1-第三方支付
     */
    @TableField("methodPayment")
    private Integer methodPayment;

    /**
     * 订单总价
     */
    @TableField("orderTotal")
    private Double orderTotal;

    /**
     * 折扣
     */
    @TableField("discount")
    private Double discount;

    /**
     * 实际支付
     */
    @TableField("payPrice")
    private Double payPrice;

    @TableField("userName")
    private String userName;

    @TableField("orderConsignee")
    private String orderConsignee;

    /**
     * 0-促销商品订单，1-普通商品订单
     */
    @TableField("type")
    private String type;


}
